package com.ywc.tools.communica;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.annotation.Nullable;
import android.util.Log;

import com.ywc.tools.Books;
import com.ywc.tools.IBooksManager;

import java.util.List;

public class AIDLService extends Service{

    IBooksManager.Stub stub=new IBooksManager.Stub() {
        @Override
        public List<Books> getBook() throws RemoteException {
            return null;
        }

        @Override
        public void addBook(Books book) throws RemoteException {
            Log.d("H","写入");
        }
    };

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return stub;
    }
}
